package com.starry.module.system.core.logger.entity;

import java.time.LocalDateTime;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 操作日志-实体
 * @author xiaoke
 */
@Schema(description = "操作日志实体")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_log_operation")
public class SysLogOperation {

    /**
     * 主键
     */
    @TableId
    private Long id;

    /**
     * 操作人Id
     */
    @Schema(description = "操作人Id")
    private Long operId;
    /**
     * 操作人员
     */
    @Schema(description = "操作人员")
    private String operName;
    /**
     * 模块标题
     */
    @Schema(description = "模块标题")
    private String title;
    /**
     * 应用名
     */
    @Schema(description = "应用名")
    private String applicationName;
    /**
     * 业务类型
     */
    @Schema(description = "业务类型")
    private Integer businessType;
    /**
     * 方法名称
     */
    @Schema(description = "方法名称")
    private String method;
    /**
     * 请求方式
     */
    @Schema(description = "请求方式")
    private String requestMethod;
    /**
     * 用户类型
     */
    @Schema(description = "用户类型")
    private Integer userType;
    /**
     * 请求URL
     */
    @Schema(description = "请求URL")
    private String requestUrl;
    /**
     * 操作ip
     */
    @Schema(description = "操作ip")
    private String requestIp;
    /**
     * 请求体
     */
    @Schema(description = "请求体")
    private String requestBody;
    /**
     * 请求头
     */
    @Schema(description = "请求头")
    private String requestHeader;
    /**
     * 响应体
     */
    @Schema(description = "响应体")
    private String responseBody;
    /**
     * 操作时间
     */
    @Schema(description = "操作时间")
    private LocalDateTime operTime;
    /**
     * 消耗时间
     */
    @Schema(description = "消耗时间")
    private Long costTime;
    /**
     * 浏览器类型
     */
    @Schema(description = "浏览器类型")
    private String browserType;
    /**
     * 操作系统
     */
    @Schema(description = "操作系统")
    private String operatingSystem;
    /**
     * IP地点
     */
    @Schema(description = "IP地点")
    private String ipAddress;
    /**
     * 租户id
     */
    @Schema(description = "租户id")
    private Long tenantId;

}

